libmyc.so:mystdio.o mystring.o
	gcc -o $@ $^ -shared
mystdio.o:mystdio.c
	gcc -fPIC -c -o $@ $< 
mystring.o:mystring.c
	gcc -fPIC -c -o $@ $<

.PHONY:output
output:
	mkdir -p lib/include
	mkdir -p lib/mylib 
	cp *.h lib/include
	cp libmyc.so lib/mylib 
	tar -czf lib.tgz lib  
.PHONY:clean
clean:
	rm -rf *.o libmyc.so lib  


